package com.lyy.king.tools;

import com.lyy.king.common.rpc.annotations.EnableLearningApiInterfaceServices;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@MapperScan("com.lyy.king.tools.mapper")
@EnableLearningApiInterfaceServices(basePackages = "com.cdx.tools.interfaces")
public class ToolsStart {
    public static void main(String[] args) {
        SpringApplication.run(ToolsStart.class, args);
    }

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}

